#!/usr/bin/php
<?PHP

$a = <<< EOF
hello abc
abc abc
ABC ABC
ABC abc
world abc
<p class="pname">hello</p>
abc
ABC

EOF;

echo $a;

$r = array();

// preg_match_all("/(?-i:[a-z]+).*[a-z]+/mi", $a, $r);
preg_match_all("/<(.*)>/Um", $a, $r);

print_r($r);

$s = "/kyo/linux/root/tom/kyo/home/root/kyo/admin";

// print_r(preg_split("/(?![a-z]+)/m", $s));
print_r(preg_split("/(?![a-z]+)/m", $s));
// print_r(preg_split("/(?<=kyo)/m", $s));
